package com.lei.day02lx.mvp;

import com.lei.day02lx.GsonBean;
import com.lei.day02lx.network.response.Response;

import java.util.HashMap;
import java.util.List;

import io.reactivex.Observable;

/**
 * @author Lc
 * @description: MVP协议
 * @date :2020/11/10 15:22
 */
public class Contract {
    public interface Presenter{
        void getCarList();
    }

    public interface View{
        void getDataSuccess(String url);
        void getDataFailed();
    }

    public interface Model{
        Observable<Response<List<GsonBean>>> getCartList(HashMap<String,String> map);
    }
}
